package com.ctgu.A1_4;

public class Order {
//    订单（Order）具有两个属性：创建日期（createDate），订单状态(status)包括CREATE、PAID、SHIPPING、DELIVERED、CANCEL五种状态；
    private String createDate;
    private STATUS status;

    @Override
    public String toString() {
        return "订单{" +
                "创建时间='" + createDate + '\'' +
                ", 订单状态=" + status +
                '}';
    }

    public Order() {
    }

    public Order(String createDate, STATUS status) {
        this.createDate = createDate;
        this.status = status;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public STATUS getStatus() {
        return status;
    }

    public void setStatus(STATUS status) {
        this.status = status;
    }
}
